<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 比较 
        // 符号 ('>','<','>=','<=','==','!=','!==','===')


        var str = '100';
        var num = 100;
        var bol = true ;

        console.log(num >100); //false
        console.log(num >= 100); //true

        // 隐式转换为number类型，再比较
        console.log(str >= num); //true
        console.log(str == num); //true -->比值
        console.log(str === num); //false -->比类型  

        console.log(str != num); //false
        console.log(str !== num); //true

        console.log(1 == true); //true
        console.log(1 === true); //false

        console.log(0 == null); // false --> null在比较的时候仅只代表值为空
        console.log(0 == undefined);//false -->undefined比较的时候，仅代表未定义
   </script>
</body>
</html>